package semana1.estructurasDeControl.ej08;

import java.util.Random;

public class Ej08 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Random r = new Random();

		int n1 = r.nextInt(20) + 1;
		int n2 = r.nextInt(20) + 1;
		int n3 = r.nextInt(20) + 1;

		System.out.println(n1);
		System.out.println(n2);
		System.out.println(n3);

		if (n1 > n2 && n1 > n3) {
			System.out.println("Mayor: " + n1);
		} else {
			if (n2 > n1 && n2 > n3) {
				System.out.println("Mayor: " + n2);

			} else {
				System.out.println("Mayor: " + n3);
			}
		}
	}

}
